<?php
/**
 *UserValidate
 * @author tan bing
 * @date 2021-08-10 14:53
 */

namespace Modules\User\Validate\Admin;


use Modules\User\Validate\BaseValidate;

class CapitalValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'required|integer',
        'type' => 'required|integer|in:1,2',
        'operate' => 'required|integer|in:1,2',
        'amount' => 'required|numeric|min:0',
    ];

    protected $message = [
        'id.required' => 'ID不能为空',
        'id.integer' => 'ID参数错误',
        'type' => '资金类型参数错误',
        'operate' => '操作类型错误',
        'amount.required' => '金额不能为空',
        'amount.numeric' => '金额类型错误',
        'amount.min' => '金额必须大于0',
    ];

}